package com.example.core.creational.builder;

import java.util.ArrayList;
import java.util.List;

/**
 * @author li_xilei
 */
public class Builder {
    
    private List<Object> list = new ArrayList<>();

    public void produceMailSender(int count){
        for(int i=0; i<count; i++){
            list.add( new MailSender());
        }
    }

    public void produceSmsSender(int count){
        for(int i=0; i<count; i++){
            list.add( new SmsSender());
        }
        System.out.println(list);
    }
}
